package Plugin_Reprise.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import Plugin_Reprise.Activator;


/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
				
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
		
		store.setDefault(PreferenceConstants.Others_Constants.P_BOOLEAN, true);
		store.setDefault(PreferenceConstants.Others_Constants.P_CHOICE, "choice2");
		store.setDefault(PreferenceConstants.Others_Constants.P_STRING, "Default value");
		
		store.setDefault(PreferenceConstants.GENE_Constants.PATH_SUIVI_REPRISE, System.getProperty("user.dir"));
		
		store.setDefault(PreferenceConstants.UV_Constants.UV_USER, "root");
		store.setDefault(PreferenceConstants.UV_Constants.UV_MDP, "***");
		store.setDefault(PreferenceConstants.UV_Constants.UV_ACCOUNT, "UV");
		store.setDefault(PreferenceConstants.UV_Constants.UV_ADRESSEIP, "localhost");
		store.setDefault(PreferenceConstants.UV_Constants.UV_EXECCHECK, "EXEC.SP FILECHECKSUM.MOLI ");
		
		store.setDefault(PreferenceConstants.Oracle_Constants.ORA_CONNECTSTRING, "jdbc:oracle:thin:@192.168.??.??:1521:sig1");
		store.setDefault(PreferenceConstants.Oracle_Constants.ORA_USER, "terp_???");
		store.setDefault(PreferenceConstants.Oracle_Constants.ORA_MDP, "***");
		store.setDefault(PreferenceConstants.Oracle_Constants.ORA_SHEMAERP, "ERP_???.");
		store.setDefault(PreferenceConstants.Oracle_Constants.ORA_SHEMATERP, "TERP_???.");
		store.setDefault(PreferenceConstants.Oracle_Constants.ORA_SHEMAOUTILS, "OUTILS_???.");
		store.setDefault(PreferenceConstants.Oracle_Constants.ORA_SHEMATOUTILS, "TOUTILS_???.");
		store.setDefault(PreferenceConstants.Oracle_Constants.ODBJJARPATH, "jar:file:/home/se/ojdbc6.jar!/");
		
		store.setDefault(PreferenceConstants.CSV_Constants.CSV_PATHEXPORT, System.getProperty("user.dir"));
		
	}

}
